\Rdversion{1.1}
\name{Weekdays}

\alias{Weekdays}
\alias{isMonday}
\alias{isTuesday}
\alias{isWednesday}
\alias{isThursday}
\alias{isFriday}
\alias{isSaturday}
\alias{isSunday}
\alias{isWeekend}
\alias{isWeekday}

\alias{isFirstMonday}
\alias{isFirstTuesday}
\alias{isFirstWednesday}
\alias{isFirstThursday}
\alias{isFirstFriday}
\alias{isFirstSaturday}
\alias{isFirstSunday}

\alias{isSecondMonday}
\alias{isSecondTuesday}
\alias{isSecondWednesday}
\alias{isSecondThursday}
\alias{isSecondFriday}
\alias{isSecondSaturday}
\alias{isSecondSunday}

\alias{isThirdMonday}
\alias{isThirdTuesday}
\alias{isThirdWednesday}
\alias{isThirdThursday}
\alias{isThirdFriday}
\alias{isThirdSaturday}
\alias{isThirdSunday}

\alias{isFourthMonday}
\alias{isFourthTuesday}
\alias{isFourthWednesday}
\alias{isFourthThursday}
\alias{isFourthFriday}
\alias{isFourthSaturday}
\alias{isFourthSunday}

\alias{isFifthMonday}
\alias{isFifthTuesday}
\alias{isFifthWednesday}
\alias{isFifthThursday}
\alias{isFifthFriday}
\alias{isFifthSaturday}
\alias{isFifthSunday}

\alias{isLastMonday}
\alias{isLastTuesday}
\alias{isLastWednesday}
\alias{isLastThursday}
\alias{isLastFriday}
\alias{isLastSaturday}
\alias{isLastSunday}

\title{
	Weekday functions
}
\description{
	These functions check if the date is a specific day.
}
\usage{
isMonday(Date)
isTuesday(Date)
isWednesday(Date)
isThursday(Date)
isFriday(Date)
isSaturday(Date)
isSunday(Date)
isWeekend(Date)
isWeekday(Date)

isFirstMonday(Date)
isFirstTuesday(Date)
isFirstWednesday(Date)
isFirstThursday(Date)
isFirstFriday(Date)
isFirstSaturday(Date)
isFirstSunday(Date)

isSecondMonday(Date)
isSecondTuesday(Date)
isSecondWednesday(Date)
isSecondThursday(Date)
isSecondFriday(Date)
isSecondSaturday(Date)
isSecondSunday(Date)

isThirdMonday(Date)
isThirdTuesday(Date)
isThirdWednesday(Date)
isThirdThursday(Date)
isThirdFriday(Date)
isThirdSaturday(Date)
isThirdSunday(Date)

isFourthMonday(Date)
isFourthTuesday(Date)
isFourthWednesday(Date)
isFourthThursday(Date)
isFourthFriday(Date)
isFourthSaturday(Date)
isFourthSunday(Date)

isFifthMonday(Date)
isFifthTuesday(Date)
isFifthWednesday(Date)
isFifthThursday(Date)
isFifthFriday(Date)
isFifthSaturday(Date)
isFifthSunday(Date)

isLastMonday(Date)
isLastTuesday(Date)
isLastWednesday(Date)
isLastThursday(Date)
isLastFriday(Date)
isLastSaturday(Date)
isLastSunday(Date)

}

\arguments{
  \item{Date}{a vector of class Date e.g. \code{Sys.Date()+0:10}}
}
%%\details{
%%  ~~ If necessary, more details than the description above ~~
%%}
\value{
The returned value is a scalar or vector of class logical.
%%  ~Describe the value returned
%%  If it is a LIST, use
%%  \item{comp1 }{Description of 'comp1'}
%%  \item{comp2 }{Description of 'comp2'}
%% ...
}
%\references{
%% ~put references to the literature/web site here ~
%}
\author{
Roger Bergande \email{roger@bergande.ch}
}
%%\note{
%%  ~~further notes~~
%%}

%% ~Make other sections like Warning with \section{Warning }{....} ~

\seealso{
	\code{
		\link{FFT}
		\link{DateYMD}
		\link{Holidays}
	}
}
\examples{
# get every third Friday
(Sys.Date()+0:364)[isThirdFriday(Sys.Date()+0:364)]
}
% Add one or more standard keywords, see file 'KEYWORDS' in the
% R documentation directory.
\keyword{chron}
\keyword{utilities}
